package com.thesale.thesalestart.controller;

import com.thesale.thesaleserver.server.TestServer;
import com.thesale.thesalemodel.server.modelServer;
import com.thesale.thesaleuser.Service.SaleUserNameService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class demoController {

    @Autowired
    TestServer testServer;

    @Autowired
    modelServer modelServer;

    @Autowired
    SaleUserNameService saleUserNameService;

    @RequestMapping("/start")
    public String test(){
        return "Hello word";
    }

    @RequestMapping("/server")
    public String testServer(){
        return saleUserNameService.selectAll().toString();
    }

}
